package com.zzq.my.jetpacks.jectpackapp.ui.act

import by.kirich1409.viewbindingdelegate.viewBinding
import com.aisier.architecture.base.BaseActivity
import com.zzq.my.jetpacks.jectpackapp.R
import com.zzq.my.jetpacks.jectpackapp.databinding.ActivityRewardsBinding
import com.zzq.my.jetpacks.util.goActivity

/**
 * 描述：活动奖励
 * 作者：zhuangzeqin
 * 时间: 2023年6月3日13:34:02
 * 邮箱：zzq@eeepay.cn
 * 备注:
 */
class ActivityRewardsAct : BaseActivity(R.layout.activity_rewards) {
    private val vb by viewBinding(ActivityRewardsBinding::bind)

    /**
     * 初始化数据
     */
    override fun initData() {
//        moredata.layoutParams = layoutParams
//        vb.circleProgress.setUpToStandardColor(R.color.color_3887EB, R.color.color_EBF3FD)
        vb.circleProgress.progress = 90
        vb.circleProgress.setOnClickListener {
//            goActivity<InterceptorDialogActivity>()
//            goActivity<StickyLayoutActivity>()
//            goActivity<StickyHeaderRecyclerViewAct>()

            val list = listOf("one", "two", "three", "four", "five")

//            val textVale = list.joinToString(separator = "\n")
            val textVale = list.joinToString(separator = ":")
//            vb.tvTest.text = textVale

            goActivity<Linear_layout_addView_Activity>()
        }

    }

    /**
     * 根据手机的分辨率从 dp 的单位 转成为 px(像素)
     */
    fun dip2px(dpValue: Float): Int {
        val scale = mContext.resources.displayMetrics.density
        return (dpValue * scale + 0.5f).toInt()
    }

    /**
     * 初始化操作
     */
    override fun initView() {

    }

    /**
     * 初始化点击事件操作
     */
    override fun eventOnClick() {

    }


}